<template>
	<view class="main auto">
	<div v-if="show">
		<view class="imgss auto">
			<img src="../../../static/amove.png" alt="">
		</view>
		<view class="auto succ">
			预约成功
		</view>
		<view class="tip">
			您已预约成功，请您持本人身份证按时就诊
		</view>
	</div>
	<div v-if="!show">
		<view class="imgss auto">
			<img src="../../../static/error.png" alt="">
		</view>
		<view class="auto succ">
			已取消
		</view>
		<view class="tip">
			您已预约成功，请您持本人身份证按时就诊
		</view>
	</div>
		<div>
			<div style="background-color: #ffffff;border: 1px solid #f3f3f3;padding: 0px 10px 0 10px;margin-top: 20px;box-shadow: azure;">
				<div class="doctorimg">
					<div class="img"></div>
					<div class="imgtext">
						<div class="imgtext1">赵马</div>
						<div class="imgtext2">主任医师</div>
					</div>
				</div>
				<div class="cont">
					<div class="phone">就诊医院</div>
					<div class="phonename">北京市第一人民医院-东院区</div>
				</div>
				<div class="cont">
					<div class="phone">医院地址</div>
					<div class="phonename">北京市大兴区**路990号</div>
					<div @click='map'><img src="@/static/mopi.png" alt="" style="width: 20px;height: 20px;vertical-align: middle;margin-left: 15px;"></div>
				</div>
				<div class="cont">
					<div class="phone">预约项目</div>
					<div class="phonename">新型冠状病毒核酸检测（咽拭子）</div>
				</div>
				<div class="cont">
					<div class="phone">预约时间</div>
					<div class="phonename">2020年12月30日 周一 上午</div>
				</div>
				<div class="cont" >
					<div class="phone">候诊时间</div>
					<div class="phonename">9:30</div>
				</div>
				<div class="cont">
					<div class="phone">费&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;用</div>
					<div class="phonename" style="color: #f46666;">¥160</div>
				</div>
				<div class="cont" style="border: 0;">
					<div class="phone">预约时间</div>
					<div class="phonename">2020年12月12号</div>
				</div>
			</div>
		</div>
		<div >
			<div style="background-color: #ffffff;border: 1px solid #f3f3f3;padding: 0px 10px 0 10px;margin-top: 20px;box-shadow: azure;">
				<div class="cont">
					<div class="phone">就诊人</div>
					<div class="phonename">戴敏慧</div>
				</div>
				<div class="cont" style="border: 0;">
					<div class="phone">身份证号</div>
					<div class="phonename">610*********0989</div>
				</div>
			</div>
		</div>
			<div style="margin-top: 20px;"><button style="background-color: #e4f0ff;color: #006eff;font-weight: 550;" @click='close' v-if="show">取消预约</button></div>
			<div style="height: 30px;width: 100%;"></div>
		</view>
</template>
<script>
	export default{
		data(){return{
			show:true
		}},
		methods:{
			close(){
				let _self=this;
				uni.showModal({
					content: '确定取消此次预约吗?',
					cancelText:'否',
					confirmText:'是',
					success: function (res) {
						if (res.confirm) {
							uni.showToast({
								title:'取消成功'
							})
							_self.show=false
						} else if (res.cancel) {
							console.log('用户点击取消');
						}
					}
				});
			},
			map(){
				uni.navigateTo({
					url:"../../../map/pages/mapaddress/mapaddress"
				})
			},
			toindex(){
				uni.switchTab({
					url:'/pages/index/index'
				})
			},paythefees(){
				uni.navigateTo({
					url:'./paythefees'
				})
			}
		}
		
	}
</script>
<style>
	.job{
		display: flex;
	}
	.doctordetail{
		font-family: 'PingFangSC-Thin', 'PingFang SC Thin', 'PingFang SC', sans-serif;
		    font-weight: 200;
		    font-style: normal;
		    font-size: 12px;
		    color: #7F7F7F;
		    line-height: 22px;
			margin-bottom: 20px;
	}
	.imgtext2{
		    font-family: 'PingFangSC-Regular', 'PingFang SC', sans-serif;
		    font-weight: 400;
		    color: #AAAAAA;
			font-size: 12px;
			margin-top: 5px;
	}
	.imgtext1{
		font-family: 'PingFangSC-Medium', 'PingFang SC Medium', 'PingFang SC', sans-serif;
		    font-weight: 500;
			font-size: 15px;
	}
	.img{
		width: 48px;
		height: 48px;
		background-color: #e6f1ff;
		border-radius: 5px;
		margin-right: 15px;
	}
	.doctorimg{
		display: flex;
		margin-top: 14px;
		align-items: center;
	}
	.log{
		text-align: center;
	}
		.content{
			padding: 15px;
		}
		.zpw {
			color: #AAAAAA;
			font-size: 12px;
			font-family: 'PingFangSC-Regular', 'PingFang SC', sans-serif;
			    font-weight: 400;
			    font-style: normal;
			    text-align: left;
			    line-height: 28px;
		}
		.navsd{
			font-size: 14px;
			font-family: 'PingFangSC-Regular', 'PingFang SC', sans-serif;
			    font-weight: 400;
			    font-style: normal;
			    text-align: left;
			    line-height: 28px;
				    color: #333333;
		}
		.title{
			    font-family: 'PingFangSC-Regular', 'PingFang SC', sans-serif;
			    font-weight: 400;
			    font-style: normal;
			    color: #AAAAAA;
				border-bottom: 1px solid #f3f3f3;
				padding: 5px 0 10px 0;
		}
		.phonename{
			margin-left: 15px;
			font-family: 'PingFangSC-Light', 'PingFang SC Light', 'PingFang SC', sans-serif;
			    font-weight: 200;
			    font-style: normal;
			    font-size: 14px;
		}
		.phone{
			    color: #AAAAAA;
				font-family: 'PingFangSC-Light', 'PingFang SC Light', 'PingFang SC', sans-serif;
				    font-weight: 200;
				    font-style: normal;
				    font-size: 14px;
					
		}
		.cont{
			display: flex;
			align-items: center;
			height: 50px;
					border-bottom: 1px solid rgba(242, 242, 242, 1);
		}
		.address{
			    font-family: 'PingFangSC-Thin', 'PingFang SC Thin', 'PingFang SC', sans-serif;
			    font-weight: 200;
			    font-size: 12px;
			    color: #7F7F7F;
		}
		.namehosp{
			font-size: 15px;font-family: 'PingFangSC-Thin', 'PingFang SC Thin', 'PingFang SC', sans-serif;
		font-style: normal;
		}
		.img{
			width: 40px;
			margin-right: 10px;
			height: 40px;
			
		}
		.context{
			flex: 70%;
		}
		.right{
			flex: 10%;
		}
		.zp{
			padding: 0 10px;
		}
		.nav {
			display: flex;
			justify-content: center;
			align-items: center;
			height: 72px;
			padding: 5px;
			border-bottom: 1px solid rgba(242, 242, 242, 1);
		}
	.main {
		width: 92%;
	}

	.succ {
		text-align: center;
		font-family: 'PingFangSC-Regular', 'PingFang SC', sans-serif;
		font-weight: 400;
		font-size: 34rpx;
	}

	.auto {
		margin: 0 auto;
	}

	.tip {
		margin: 10rpx 0;
		font-family: 'PingFangSC-Ultralight', 'PingFang SC Ultralight', 'PingFang SC', sans-serif;
		font-weight: 100;
		color: #AAAAAA;
		font-size: 28rpx;
		text-align: center;
	}

	.imgss {
		margin: 80rpx auto 46rpx;
		width: 100rpx;
		height: 70rpx;
	}

	.btnst {
		font-family: 'PingFangHK-Regular', 'PingFang HK', sans-serif;
		font-weight: 400;
		height: 76rpx;
		font-size: 34rpx;
		color: #FFFFFF;
		text-align: center;
		line-height: 40rpx;
		border-radius: 8rpx;
		background-color: rgba(52, 120, 247, 1);
		display: flex;
		align-items: center;
		justify-content: center;
		margin: 220rpx 0 30rpx;
	}

	.btnnd {
		font-family: 'PingFangHK-Regular', 'PingFang HK', sans-serif;
		font-weight: 400;
		height: 76rpx;
		font-size: 34rpx;
		color: #FFFFFF;
		text-align: center;
		line-height: 40rpx;
		border-radius: 8rpx;
		background-color: rgba(52, 120, 247, 1);
		display: flex;
		align-items: center;
		justify-content: center;
		color: #006EFF;
		background-color: rgba(0, 110, 255, 0.0980392156862745);
	}

	.imgss img {
		width: 100rpx;
		height: 100rpx;
	}
</style>